import http from '@/utils/http';
import {baseUrl} from './commonApi'

const paths = {
    getStudentInfo: `${baseUrl}/student/info`,
    getStudentStatiscs: `${baseUrl}/student/statiscs`,
    getStudentExperienceTotal: `${baseUrl}/student/experience/total`,
    getStudentExperienceDetails: `${baseUrl}/student/experience`,
    getCommentDetails: `${baseUrl}/course-resource/remark-on/{id}`,
};

export function getStudentInfo(data, callback) {
    return http.get(paths.getStudentInfo, { data }, callback)
}
export function getStudentStatiscs(data, callback) {
    return http.get(paths.getStudentStatiscs, { data }, callback)
}
export function getStudentExperienceTotal(data, callback) {
    return http.get(paths.getStudentExperienceTotal, { data }, callback)
}
export function getStudentExperienceDetails(data, callback) {
    return http.get(paths.getStudentExperienceDetails, { data }, callback)
}
/**
 * 获取学生点评
 * @param {*} data 
 * @param {*} callback 
 * @returns 
 */
export function getStudentCommentDetails(id, callback) {
    var tPath = paths.getCommentDetails.replace('{id}', id);
    return http.get(tPath, null, callback)
}
